﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using T_Rbac_Demain;
using T_Rbac_Rep.Interface;

namespace T_Rbac_Rep.Impls
{
    public class JobRepways : BaseRepWays<Job>,IjobRep
    {
        public JobRepways(Mycreate mycreate) : base(mycreate)
        {
        }

        public async Task<int> Add(Job model)
        {
           return await base.Add(model);
        }

        public async Task<int> Delete(Job model)
        {
           return await base.Delete(model);
        }

        public async Task<int> DeleteRange(List<Job> values)
        {
            return await base.DeleteRange(values);
        }

        public async Task<Job> GetAloneByid(int id)
        {
            return await base.GetAloneByid(id);
        }

        public async Task<Job> GetAloneByresult(Expression<Func<Job, bool>> result)
        {
            return await base.GetAloneByresult(result);
        }

        public async Task<IQueryable<Job>> Getvalues()
        {
            return await base.Getvalues();
        }

        public async Task<IQueryable<Job>> GetvaluesByResult(Expression<Func<Job, bool>> result)
        {
            return await base.GetvaluesByResult(result);
        }

        public async Task<int> Update(Job model)
        {
            return await base.Update(model);
        }

        public async Task<int> UpdateRange(List<Job> values)
        {
            return await base.UpdateRange(values);
        }
    }
}
